﻿@model DICOM_PROJECT.Models.LoginModel
@{
    ViewBag.Title = "Login";
}

@using (Html.BeginForm("Login", "UserProfile", FormMethod.Post, new { @class = "form-signin" }))
{
    @Html.AntiForgeryToken()
    <h2 class="form-signin-heading">Please Sign In</h2>
    @Html.TextBoxFor(model => model.ID, new { @class = "form-control", @placeholder = "User ID", @type="text" })
    @Html.ValidationMessageFor(model => model.ID)
    @Html.TextBoxFor(model => model.Password, new { @class = "form-control", @placeholder = "Password", @type="password" })
    @Html.ValidationMessageFor(model => model.Password)
    @Html.ValidationSummary(true)
    <input type="submit" value="Login" class="btn btn-lg btn-primary btn-block" />
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
    <script>
        $(function () {
            $("#ID").focus();
        });
    </script>
}